package com.shu.es;

import java.io.File;

import com.shu.utils.FileUtils;
import com.shu.utils.HttpUtils;

public class PutMapping {

	public static void main(String[] args) {
		String url = "http://192.168.1.16:9200/app_day2/_mapping/data";
		
		String content = FileUtils.readFile(new File("C:\\Users\\mzj\\workspace\\my.test\\src\\main\\java\\com\\shu\\es\\putMapping.txt"));
		System.out.println(content);
		
		String string = HttpUtils.httpPut(url, content);
		System.out.println(string);
	}

}
